package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.result.PageResult;
import com.itheima.common.result.Result;
import com.itheima.dto.SysUserDTO;
import com.itheima.dto.SysUserPageQueryDTO;
import com.itheima.pojo.SysUser;
import com.itheima.vo.SysUserVO;

import java.util.Map;

public interface SysUserService extends IService<SysUser> {

    /**
     * 用户列表分页
     * @param dto
     * @return
     */
    Result<PageResult> pageQuery(SysUserPageQueryDTO dto);

    /**
     * 根据id删除用户
     * @param id
     * @return
     */
    Result deleteById(String id);

    /**
     * 添加管理员
     * @param dto
     * @return
     */
    Result addSysUser(SysUserDTO dto);

    /**
     * 根据id回显数据
     * @param id
     * @return
     */
    Result<SysUserVO> getSysUserById(String id);

    /**
     * 更新sysUser
     * @param map
     * @return
     */
//    Result sysUserUpdate(SysUserDTO sysUserDTO);

    Result updateByMap(Map map);
}
